﻿using System;

namespace Melee.DataContract.Views
{
    public class ConfigView
    {
        private Int32 m_AreaLength = 0;
        public Int32 AreaLength
        {
            get { return m_AreaLength; }
            set { m_AreaLength = value; }
        }

        private Int32 m_PointLength = 0;
        public Int32 PointLength
        {
            get { return m_PointLength; }
            set { m_PointLength = value; }
        }

        private Int32 m_MaxWidth = 0;
        public Int32 MaxWidth
        {
            get { return m_MaxWidth; }
            set { m_MaxWidth = value; }
        }

        private Int32 m_MaxHeight = 0;
        public Int32 MaxHeight
        {
            get { return m_MaxHeight; }
            set { m_MaxHeight = value; }
        }

        private Int32 m_Width = 0;
        public Int32 Width
        {
            get { return m_Width; }
            set { m_Width = value; }
        }

        private Int32 m_Height = 0;
        public Int32 Height
        {
            get { return m_Height; }
            set { m_Height = value; }
        }

        public Int32 MaxX
        {
            get { return MaxWidth - Width; }
        }

        public Int32 MaxY
        {
            get { return MaxHeight - Height; }
        }

        private Int32 m_MapWidth = 0;
        public Int32 MapWidth
        {
            get { return m_MapWidth; }
            set { m_MapWidth = value; }
        }

        private Int32 m_MapHeight = 0;
        public Int32 MapHeight
        {
            get { return m_MapHeight; }
            set { m_MapHeight = value; }
        }

        private string m_RequestErrorMessage = null;
        public string RequestErrorMessage
        {
            get { return m_RequestErrorMessage; }
            set { m_RequestErrorMessage = value; }
        }
    }
}
